package org.akomantoso.core.data;

import java.io.IOException;

import org.akomantoso.core.io.Output;

/**
 * The element FRBRWork is the metadata container of identifying properties related to the Work level according to the
 * FRBR hierarchy.
 * 
 * <pre>
 * 	<xsd:element name="FRBRWork">
 * 		<xsd:complexType>
 * 			<xsd:complexContent>
 * 				<xsd:extension base="coreProperties">
 * 					<xsd:sequence>
 * 						<xsd:group ref="workProperties"/>
 * 					 </xsd:sequence>
 *  			</xsd:extension>
 * 			</xsd:complexContent>
 * 		</xsd:complexType>
 * 	</xsd:element>
 * </pre>
 * 
 * @author <a href="mailto:jacques.militello@gmail.com">Jacques Militello</a>
 * 
 * @since http://www.akomantoso.org/2.0
 */
public final class FRBRWork extends WorkProperty {

	public static final String ELEMENT = "FRBRWork";

	/**
	 * @see org.akomantoso.core.data.WorkProperty#writeExternal(org.akomantoso.core.io.Output)
	 */
	@Override
	public <T extends Output> void writeExternal(T out) throws IOException {
		out.writeStart(ELEMENT);
		super.writeExternal(out);
		out.writeEnd();
	}
	
}